<?php

namespace App\Http\Requests\user;

use App\Http\Requests\BaseRequest;
use Illuminate\Foundation\Http\FormRequest;

class ChangeUserRequest extends BaseRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return parent::authorize();
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            //
            'nickName'  => 'max:255',
            'tel'   => 'size:11',
            'age'   =>  'Integer|min:0|max:100',
            'signature' => 'max:191',
        ];
    }
}
